package com.tsing.cedap.rest.vo.reqVo;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author TheTsing
 * @create 2022-01-06 16:49
 */
@Getter
@Setter
@Accessors(chain = true)
public class TradeReqVo {

    @NotBlank(message = "商品描述不能为空")
    private String body;

    @NotBlank(message = "商品名称不能为空")
    private String subject;

    @NotNull(message = "价格不能为空")
    private BigDecimal totalAmount;

}
